#!/bin/bash

# Fixed prefix
PREFIX="SSDP.Example.Net"

# Get current date in YYYY-MM-DD format
CURRENT_DATE=$(date +%Y-%m-%d)

# Construct zip file name
ZIP_NAME="${PREFIX}.${CURRENT_DATE}.zip"

# Export the current repository (exclude .git directory) to the parent folder
git archive --format=zip --output="../${ZIP_NAME}" HEAD

# Optional: Notify the user (for command line run, won't be seen on double-click)
echo "Repository exported to ../${ZIP_NAME}"

